/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package test;


import java.sql.SQLException;
import javax.swing.JFrame;
import java.util.ArrayList;


/**
 *
 * @author taia
 */
public class NewJFrame extends javax.swing.JFrame {
    
    /**
     * Creates new form NewJFrame
     */
    public NewJFrame() {
        initComponents();
    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jPanel1 = new javax.swing.JPanel();
        backPic = new javax.swing.JLabel();
        jLabel1 = new javax.swing.JLabel();
        jButton1 = new javax.swing.JButton();
        textField1 = new java.awt.TextField();
        stunBox = new javax.swing.JCheckBox();
        fearBox = new javax.swing.JCheckBox();
        disableBox = new javax.swing.JCheckBox();
        slowBox = new javax.swing.JCheckBox();
        rootBox = new javax.swing.JCheckBox();
        knockBox = new javax.swing.JCheckBox();
        shieldBox = new javax.swing.JCheckBox();
        healBox = new javax.swing.JCheckBox();
        msbuffBox = new javax.swing.JCheckBox();
        asbuffBox = new javax.swing.JCheckBox();
        invulBox = new javax.swing.JCheckBox();
        untargetBox = new javax.swing.JCheckBox();
        invisBox = new javax.swing.JCheckBox();
        dashBox = new javax.swing.JCheckBox();
        displaceBox = new javax.swing.JCheckBox();
        silenceBox = new javax.swing.JCheckBox();
        reviveBox = new javax.swing.JCheckBox();
        mitBox = new javax.swing.JCheckBox();
        atkbuffBox = new javax.swing.JCheckBox();
        textField2 = new java.awt.TextField();
        jScrollPane1 = new javax.swing.JScrollPane();
        jList1 = new javax.swing.JList();
        jButton2 = new javax.swing.JButton();
        jLabel2 = new javax.swing.JLabel();
        jLabel3 = new javax.swing.JLabel();
        jLabel4 = new javax.swing.JLabel();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        getContentPane().setLayout(null);

        backPic.setIcon(new javax.swing.ImageIcon(getClass().getResource("/test/lol_resized.jpg"))); // NOI18N

        jLabel1.setBackground(new java.awt.Color(255, 255, 255));
        jLabel1.setFont(new java.awt.Font("Lucida Grande", 1, 24)); // NOI18N
        jLabel1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        jLabel1.setText("League of Legends Database Search 1.0");
        jLabel1.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));

        jButton1.setText("Search");
        jButton1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton1ActionPerformed(evt);
            }
        });

        textField1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                textField1ActionPerformed(evt);
            }
        });

        stunBox.setText("Stun");
        stunBox.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                stunBoxActionPerformed(evt);
            }
        });

        fearBox.setText("Fear");
        fearBox.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                fearBoxActionPerformed(evt);
            }
        });

        disableBox.setText("Disable");
        disableBox.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                disableBoxActionPerformed(evt);
            }
        });

        slowBox.setText("Slow");
        slowBox.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                slowBoxActionPerformed(evt);
            }
        });

        rootBox.setText("Root");
        rootBox.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                rootBoxActionPerformed(evt);
            }
        });

        knockBox.setText("Knockup");
        knockBox.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                knockBoxActionPerformed(evt);
            }
        });

        shieldBox.setText("Shield");
        shieldBox.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                shieldBoxActionPerformed(evt);
            }
        });

        healBox.setText("Heal");
        healBox.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                healBoxActionPerformed(evt);
            }
        });

        msbuffBox.setText("MSbuff");
        msbuffBox.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                msbuffBoxActionPerformed(evt);
            }
        });

        asbuffBox.setText("ASbuff");
        asbuffBox.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                asbuffBoxActionPerformed(evt);
            }
        });

        invulBox.setText("Invulnerable");
        invulBox.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                invulBoxActionPerformed(evt);
            }
        });

        untargetBox.setText("Untargetable");
        untargetBox.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                untargetBoxActionPerformed(evt);
            }
        });

        invisBox.setText("Invisable");
        invisBox.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                invisBoxActionPerformed(evt);
            }
        });

        dashBox.setText("Dash");
        dashBox.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                dashBoxActionPerformed(evt);
            }
        });

        displaceBox.setText("Displacement");
        displaceBox.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                displaceBoxActionPerformed(evt);
            }
        });

        silenceBox.setText("Silence");
        silenceBox.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                silenceBoxActionPerformed(evt);
            }
        });

        reviveBox.setText("Revive");
        reviveBox.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                reviveBoxActionPerformed(evt);
            }
        });

        mitBox.setText("Mitagation");
        mitBox.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                mitBoxActionPerformed(evt);
            }
        });

        atkbuffBox.setText("ATKbuff");
        atkbuffBox.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                atkbuffBoxActionPerformed(evt);
            }
        });

        jScrollPane1.setViewportView(jList1);

        jButton2.setText("Remove");
        jButton2.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton2ActionPerformed(evt);
            }
        });

        jLabel2.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        jLabel2.setForeground(new java.awt.Color(255, 255, 255));
        jLabel2.setText("name| primary class | secondary class | attribute1 | attribute2 | attribute3...");

        jLabel3.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        jLabel3.setForeground(new java.awt.Color(255, 255, 255));
        jLabel3.setText("Name");

        jLabel4.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        jLabel4.setForeground(new java.awt.Color(255, 255, 255));
        jLabel4.setText("Class");

        javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
        jPanel1.setLayout(jPanel1Layout);
        jPanel1Layout.setHorizontalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jPanel1Layout.createSequentialGroup()
                                .addComponent(stunBox)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(fearBox)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(disableBox)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(rootBox))
                            .addGroup(jPanel1Layout.createSequentialGroup()
                                .addComponent(msbuffBox)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(asbuffBox)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(invulBox)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(untargetBox))
                            .addGroup(jPanel1Layout.createSequentialGroup()
                                .addComponent(dashBox)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(atkbuffBox)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(mitBox))
                            .addGroup(jPanel1Layout.createSequentialGroup()
                                .addComponent(invisBox)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(silenceBox)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(displaceBox)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(reviveBox))
                            .addGroup(jPanel1Layout.createSequentialGroup()
                                .addComponent(slowBox)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(knockBox)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(shieldBox)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(healBox))
                            .addGroup(jPanel1Layout.createSequentialGroup()
                                .addComponent(textField1, javax.swing.GroupLayout.PREFERRED_SIZE, 155, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 68, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addGroup(jPanel1Layout.createSequentialGroup()
                                        .addComponent(textField2, javax.swing.GroupLayout.PREFERRED_SIZE, 148, javax.swing.GroupLayout.PREFERRED_SIZE)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(jButton1)))))
                        .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jPanel1Layout.createSequentialGroup()
                                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                    .addComponent(jLabel2, javax.swing.GroupLayout.DEFAULT_SIZE, 455, Short.MAX_VALUE)
                                    .addComponent(jScrollPane1))
                                .addGap(28, 28, 28)
                                .addComponent(jButton2))
                            .addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 68, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(0, 194, Short.MAX_VALUE))))
            .addComponent(jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
            .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(jPanel1Layout.createSequentialGroup()
                    .addComponent(backPic, javax.swing.GroupLayout.PREFERRED_SIZE, 777, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGap(0, 3, Short.MAX_VALUE)))
        );
        jPanel1Layout.setVerticalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addComponent(jLabel1)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel3)
                    .addComponent(jLabel4))
                .addGap(4, 4, 4)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                    .addComponent(jButton1)
                    .addComponent(textField1, javax.swing.GroupLayout.DEFAULT_SIZE, 30, Short.MAX_VALUE)
                    .addComponent(textField2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addGap(19, 19, 19)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(stunBox)
                    .addComponent(fearBox)
                    .addComponent(disableBox)
                    .addComponent(rootBox))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(slowBox)
                    .addComponent(knockBox)
                    .addComponent(shieldBox)
                    .addComponent(healBox, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(msbuffBox)
                    .addComponent(asbuffBox)
                    .addComponent(invulBox)
                    .addComponent(untargetBox))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(invisBox)
                    .addComponent(silenceBox)
                    .addComponent(displaceBox)
                    .addComponent(reviveBox))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(dashBox)
                    .addComponent(atkbuffBox)
                    .addComponent(mitBox))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addComponent(jLabel2)
                .addGap(8, 8, 8)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jButton2)
                    .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 160, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(16, 16, 16))
            .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addComponent(backPic, javax.swing.GroupLayout.PREFERRED_SIZE, 458, Short.MAX_VALUE))
        );

        getContentPane().add(jPanel1);
        jPanel1.setBounds(0, 0, 780, 450);

        setBounds(0, 0, 777, 473);
    }// </editor-fold>//GEN-END:initComponents

    private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
        frame2 = new JFrame2();
        //String returnField = textField1.getText();
        try {
        LeagueDBquery lolquery = new LeagueDBquery();
        ArrayList<String> nameList = new ArrayList<String>();
        ArrayList<String> attList = new ArrayList<String>();
        String nameField = "";
        String classField = "";
        nameField = frame1.textField1.getText();
        classField = frame1.textField2.getText();
  
        nameList = lolquery.query(nameField , classField, stun, fear, disable, slow, root, knockup, shield, heal
					, msbuff, asbuff, invul, untarget, invis, dash, displace, silence, revive, mitigation, atkbuff);
        
        
        attList = lolquery.attFind(nameList);
        frame2.jList2.setListData(attList.toArray());
        
        frame2.passCurrent(frame1);
        frame2.setVisible(true);
        } catch(SQLException e) {
            System.out.println("Error:" + e);
        }
        
        
    }//GEN-LAST:event_jButton1ActionPerformed

    private void textField1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_textField1ActionPerformed
        
    }//GEN-LAST:event_textField1ActionPerformed

    private void invisBoxActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_invisBoxActionPerformed
        if(invisBox.isSelected() == true) {
            invis = 1;
        }
        else {
            invis = 0;
        }
    }//GEN-LAST:event_invisBoxActionPerformed

    private void displaceBoxActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_displaceBoxActionPerformed
        if(displaceBox.isSelected() == true) {
            displace = 1;
        }
        else {
            displace = 0;
        }
    }//GEN-LAST:event_displaceBoxActionPerformed

    private void silenceBoxActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_silenceBoxActionPerformed
        if(silenceBox.isSelected() == true) {
            silence = 1;
        }
        else {
            silence = 0;
        }
    }//GEN-LAST:event_silenceBoxActionPerformed

    private void reviveBoxActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_reviveBoxActionPerformed
        if(reviveBox.isSelected() == true) {
            revive = 1;
        }
        else {
            revive = 0;
        }
    }//GEN-LAST:event_reviveBoxActionPerformed

    private void mitBoxActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mitBoxActionPerformed
        if(mitBox.isSelected() == true) {
            mitigation = 1;
        }
        else {
            mitigation = 0;
        }
    }//GEN-LAST:event_mitBoxActionPerformed

    private void dashBoxActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_dashBoxActionPerformed
        if(dashBox.isSelected() == true) {
            dash = 1;
        }
        else {
            dash = 0;
        }
    }//GEN-LAST:event_dashBoxActionPerformed

    private void atkbuffBoxActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_atkbuffBoxActionPerformed
        if(atkbuffBox.isSelected() == true) {
            atkbuff = 1;
        }
        else {
            atkbuff = 0;
        }
    }//GEN-LAST:event_atkbuffBoxActionPerformed

    private void shieldBoxActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_shieldBoxActionPerformed
        if(shieldBox.isSelected() == true) {
            shield = 1;
        }
        else {
            shield = 0;
        }
    }//GEN-LAST:event_shieldBoxActionPerformed

    private void stunBoxActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_stunBoxActionPerformed
        if(stunBox.isSelected() == true) {
            stun = 1;
        }
        else {
            stun = 0;
        }
    }//GEN-LAST:event_stunBoxActionPerformed

    private void fearBoxActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_fearBoxActionPerformed
        if(fearBox.isSelected() == true) {
            fear = 1;
        }
        else {
            fear = 0;
        }
    }//GEN-LAST:event_fearBoxActionPerformed

    private void disableBoxActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_disableBoxActionPerformed
        if(disableBox.isSelected() == true) {
            disable = 1;
        }
        else {
            disable = 0;
        }
    }//GEN-LAST:event_disableBoxActionPerformed

    private void rootBoxActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_rootBoxActionPerformed
        if(rootBox.isSelected() == true) {
            root = 1;
        }
        else {
            root = 0;
        }
    }//GEN-LAST:event_rootBoxActionPerformed

    private void slowBoxActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_slowBoxActionPerformed
        if(slowBox.isSelected() == true) {
            slow = 1;
        }
        else {
            slow = 0;
        }
    }//GEN-LAST:event_slowBoxActionPerformed

    private void knockBoxActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_knockBoxActionPerformed
        if(knockBox.isSelected() == true) {
            knockup = 1;
        }
        else {
            knockup = 0;
        }
    }//GEN-LAST:event_knockBoxActionPerformed

    private void healBoxActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_healBoxActionPerformed
        if(healBox.isSelected() == true) {
            heal = 1;
        }
        else {
            heal = 0;
        }
    }//GEN-LAST:event_healBoxActionPerformed

    private void msbuffBoxActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_msbuffBoxActionPerformed
        if(msbuffBox.isSelected() == true) {
            msbuff = 1;
        }
        else {
            msbuff = 0;
        }
    }//GEN-LAST:event_msbuffBoxActionPerformed

    private void asbuffBoxActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_asbuffBoxActionPerformed
        if(asbuffBox.isSelected() == true) {
            asbuff = 1;
        }
        else {
            asbuff = 0;
        }
    }//GEN-LAST:event_asbuffBoxActionPerformed

    private void invulBoxActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_invulBoxActionPerformed
        if(invulBox.isSelected() == true) {
            invul = 1;
        }
        else {
            invul = 0;
        }
    }//GEN-LAST:event_invulBoxActionPerformed

    private void untargetBoxActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_untargetBoxActionPerformed
        if(untargetBox.isSelected() == true) {
            untarget = 1;
        }
        else {
            untarget = 0;
        }
    }//GEN-LAST:event_untargetBoxActionPerformed

    private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton2ActionPerformed
        for(int x = 0; x < frame2.list.size(); x++) {
            if(frame2.list.get(x).equals(jList1.getSelectedValue())) {
                frame2.list.remove(x);
            }
        }
        frame1.jList1.setListData(frame2.list.toArray());
    }//GEN-LAST:event_jButton2ActionPerformed

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        /* Set the Nimbus look and feel */
        //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
        /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
         * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html 
         */
        try {
            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
                if ("Nimbus".equals(info.getName())) {
                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
                    break;
                }
            }
        } catch (ClassNotFoundException ex) {
            java.util.logging.Logger.getLogger(NewJFrame.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
            java.util.logging.Logger.getLogger(NewJFrame.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            java.util.logging.Logger.getLogger(NewJFrame.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
            java.util.logging.Logger.getLogger(NewJFrame.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        }
        //</editor-fold>

        /* Create and display the form */
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                frame1 = new NewJFrame();
                frame1.setVisible(true);
            }
        });
    }
    private static NewJFrame frame1;
    private JFrame2 frame2;
    private int clas;
    private int stun;
    private int fear;
    private int disable;
    private int slow;
    private int root;
    private int knockup;
    private int shield;
    private int heal;
    private int msbuff;
    private int asbuff;
    private int invul;
    private int untarget;
    private int invis;
    private int dash;
    private int displace;
    private int silence;
    private int revive;
    private int mitigation;
    private int atkbuff;
                    
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JCheckBox asbuffBox;
    private javax.swing.JCheckBox atkbuffBox;
    private javax.swing.JLabel backPic;
    private javax.swing.JCheckBox dashBox;
    private javax.swing.JCheckBox disableBox;
    private javax.swing.JCheckBox displaceBox;
    private javax.swing.JCheckBox fearBox;
    private javax.swing.JCheckBox healBox;
    private javax.swing.JCheckBox invisBox;
    private javax.swing.JCheckBox invulBox;
    private javax.swing.JButton jButton1;
    private javax.swing.JButton jButton2;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel4;
    public javax.swing.JList jList1;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JCheckBox knockBox;
    private javax.swing.JCheckBox mitBox;
    private javax.swing.JCheckBox msbuffBox;
    private javax.swing.JCheckBox reviveBox;
    private javax.swing.JCheckBox rootBox;
    private javax.swing.JCheckBox shieldBox;
    private javax.swing.JCheckBox silenceBox;
    private javax.swing.JCheckBox slowBox;
    private javax.swing.JCheckBox stunBox;
    private java.awt.TextField textField1;
    private java.awt.TextField textField2;
    private javax.swing.JCheckBox untargetBox;
    // End of variables declaration//GEN-END:variables
}
